#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include "../Ls_file/Lsfile.h"
using namespace std;

#ifndef COMPARE_H_
#define COMPARE_H_

class Compare {
	Lsfile *A;
	vector<string> shield;
	vector<string> shield2split;
	vector<string> compared_files;
	bool shieldcheck();
	bool extension(int i);
public:
	Compare(Lsfile *A, vector <string> shield):  A(A), shield(shield) {
		istringstream iss(shield[2]);
		do {
			string sub;
			iss >> sub;
			if (sub != "")
				shield2split.push_back(sub);
		} while (iss);
	}
	void do_all();

	void popComparedFiles() {
		compared_files.pop_back();
	}

	vector<string> getComparedFiles() const {
		return compared_files;
	}
};

#endif /* COMPARE_H_ */
